feat: support Python 3.11 and 3.12#26
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
uv python install only downloads the interpreter; uv python pin writes .python-version so uv sync/run actually selects it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lowers the supported Python floor from 3.13 to 3.11, matching the
faststream-redis-timersconvention in the org. Runtime deps (tenacity, sqlalchemy, asyncpg) already support 3.11+; the only code change isretry.py, which used PEP 695 generic syntax (3.12+ only).Changes
retry.py: rewrite the PEP 695typealiases anddef postgres_retry[**P, T]generics to pre-695 stdlibtyping.ParamSpec/TypeVar/TypeAlias(no new dependency). Named aliases_Func/_Decoratorretained; function body and public behavior unchanged.pyproject.toml:requires-python = ">=3.11,<4", add 3.11/3.12 classifiers, rufftarget-version = "py311".README.md: support line → Python 3.11+..github/workflows/_checks.yml):pytestmatrix over 3.11/3.12/3.13/3.14 (fail-fast: false); lint job stays on 3.13. Both jobsuv python pinthe interpreter so each matrix leg actually runs on its target version (without the pin,uvselects the newest available interpreter under the loosened floor).Verification
ty check,ruff(atpy311target), full pytest suite (28 passed, 100% coverage) all green locally.Spec and plan:
planning/changes/2026-06-30.01-python-3.11-3.12-support/.🤖 Generated with Claude Code